<include file="./Tm/Dt/Admin/Top.html" />

<include file="./Tm/Dt/Admin/Left.html" />


<div id="right">
    <include file="./Tm/Dt/Admin/Nav.html" />
    <!--主要内容块-->
    <script type="text/javascript" src="__PUBLIC__/Dt/lib/jedate/jedate.min.js" ></script>
    <div class="main">



        <div>
            <ul class="nav nav-tabs">
			  <li role="presentation" class="active"><a href="#">提供帮助列表</a></li>
			</ul>
            <div class="panel-body">
                <div class="table-responsive">
                    <div class="selct">
                        <form class="form-inline" role="form">
                            <div class="form-group">
                                <div class="input-group">
                                    <div class="input-group-addon">关键字</div>
                                    <input id="k" name="k" class="form-control " type="text" placeholder="输入关键字" value="{$keyword}">
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="input-group">
                                    <div class="input-group-addon">开始时间</div>
                                    <input id="b" name="b" class="form-control stu1" type="text" placeholder="输入开始日期" value="{$begintime|date='Y-m-d',###}" onfocus="getbigtime();" readonly>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="input-group">
                                    <div class="input-group-addon">结束时间</div>
                                    <input id="e" name="e" class="form-control stu2" type="text" placeholder="输入结束日期" value="{$endtime|date='Y-m-d',###}" onfocus="getsmalltime();" readonly >
                                </div>
                            </div>
                            <script type="text/javascript">
                                jeDate({
                                    dateCell:".stu1",
                                    format:"YYYY-MM-DD",
                                    isTime:false,
                                    minDate:"1900-1-1",
                                    maxDate:"2099-12-12"
                                });
                                jeDate({
                                    dateCell:".stu2",
                                    format:"YYYY-MM-DD",
                                    isTime:false,
                                    minDate:"1900-1-1",
                                    maxDate:"2099-12-12"
                                });

                                var getsmalltime=function()
                                {

                                    if($.trim($('#b').val())!='')
                                    {
                                        if(confirm('确认开始时间为：'+$('#b').val()+'吗?'));
                                        {
                                            jeDate({
                                                dateCell:".stu2",
                                                format:"YYYY-MM-DD",
                                                isTime:false,
                                                minDate:$('#b').val(),
                                                maxDate:"2099-12-12"
                                            });
                                        }
                                    }
                                }
                                var getbigtime=function()
                                {

                                    if($.trim($('#e').val())!='')
                                    {
                                        if(confirm('确认结束时间为：'+$('#e').val()+'吗?'));
                                        {
                                            jeDate({
                                                dateCell:".stu1",
                                                format:"YYYY-MM-DD",
                                                isTime:false,
                                                minDate:"1900-1-1",
                                                maxDate:$('#e').val()
                                            });
                                        }
                                    }
                                }

                            </script>
                            <input type="button" class="btn btn-default" name="button" id="button" value="查询"  onclick="searchuser();" />
                        </form>
                    </div>

                    <table class="table">
                        <tr>
                            <th>订单号</th>
                            <th>会员名</th>
                            <th>姓名</th>
                            <th>匹配人数</th>
                            <th>金额</th>
                            <th>剩余金额</th>
                            <th>时间</th>
                            <th>状态</th>
                            <th>操作</th>
                        </tr>
                        <volist name="room" id="vo">
                            <tr>
                                <td>{$vo.orderid}</td>
                                <td>{$vo.username}</td>
                                <td>{$vo.realname}</td>
                                <td>{$vo.number}</td>
                                <td>{$vo.price}</td>
                                <td>{$vo.surplus}</td>
                                <td>
                                    {$vo.createtime|date="Y-m-d H:i:s",###}
                                </td>
                                <td> <switch name="vo.status">
                                    <case value="0">排队中，等待匹配</case>
                                    <case value="1">匹配完成，等待打款</case>
                                    <case value="2">打款完成，等待确认</case>
                                    <case value="3">确认完成，成功提供帮助</case>

                                </switch></td>

                                <td>
                                    <switch name="vo.status">
                                    <case value="0"><a href="/admin/index/dpipei.html?id={$vo.id}&t=1&o={$o}">匹配</a> | <a href="/admin/index/caidan.html?id={$vo.id}&t=1&o={$o}">拆单</a> | <a href="/admin/index/tpipeidel.html?id={$vo.id}&t=1&o={$o}">删除</a>
                                    </case>

                                </switch></td>
                            </tr>

                        </volist>
                    </table>
                    <include file="./Tm/Dt/Page.html" />
                </div>
            </div>
        </div>
    </div>
</div>

						<script>
							$("#shijian").find("a").click(function(){
//								alert($("#shijian").find("a").length)
								var zt = $(this).parent().parent().next().find("div").css("display")
								if (zt == "none") {
									$(this).parent().parent().next().find("div").slideDown().parent().css("padding","8");
								} else{
									$(this).parent().parent().next().find("div").slideUp().parent().css("padding","0");
								}
							})
						</script>
<include file="./Tm/Dt/Admin/Foot.html" />

<script src="__PUBLIC__/Admin/js/tpipei.js" type="text/javascript" charset="utf-8"></script>